package com.hdax.dm.Controller;

import com.hdax.dm.dto.floorDto;
import com.hdax.dm.service.floorService;
import com.hdax.dm.utils.response.CommonResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/item")
public class floorController {

    @Autowired
    private floorService floorService;

    /**
     * 首页楼层
     */
    @PostMapping("index/floor")
    public CommonResponse<List<floorDto>> indexlinenav(){
        return floorService.floor();
    }
}
